/* 2014/8/28 */
package com.cosmos.quartz.test.job;

import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class ConsumeTimeJob implements Job {

	private static final Logger LOGGER = Logger.getLogger(ConsumeTimeJob.class.getSimpleName()); 
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		
		LOGGER.info("Begin time-consuming task.");
		
		try {
			Thread.sleep(10 * 1000);
		} catch (InterruptedException ex) {
			LOGGER.error(ex);
		}
		
		LOGGER.info("End time-consuming task.");
	}

}
